package cn.fulong.smebj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User对象", description="用户")
public class User {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    private String userName;

    private String password;

    private String realName;

    private String phone;

    private String email;

    private String roleId;

    private LocalDateTime createTime;

    private String sex;

    private String idNumber;

    private String cardNumber;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date inTime;

    private String status;

    private Date signTime;

}